﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using model;
using business;

namespace service
{
    public class SanphamTrathatService
    {
        SanphamTrathatBUS spBUS = new SanphamTrathatBUS();

        public List<SanphamTrathatModel> getListSanphamByLoai(long id)
        {
            return spBUS.getListsanphamByLoai(id);
        }

        public List<SanphamTrathatModel> getListTop8SanphamByLoai(long id)
        {
            return spBUS.getListTop8sanphamByLoai(id);
        }

        public List<SanphamTrathatModel> getListSanphamByID(long id)
        {
            return spBUS.getListsanphamByID(id);
        }

        public string themmoiSanpham(SanphamTrathatModel bv)
        {
            return spBUS.themmoiSanpham(bv);
        }

        public string suaSanpham(SanphamTrathatModel bv)
        {
            return spBUS.suaSanpham(bv);
        }
    }
}
